<?php


namespace app\api\controller\service;

use app\common\controller\Api;

class Givemoney extends Api
{
    protected $noNeedLogin = [''];
    protected $noNeedRight = ['*'];

    public function getGiveMoney()
    {
        $model = new \app\admin\model\service\money\Givemoney();
        $list = $model ->where('status',1)->select();
        if($list) {
            $this->success('信息返回成功',$list);
        }else{
            $this->error('请设置返赠规则');
        }
    }
}